package com.wfs.spring.service.impl;

import com.wfs.spring.anno.Test1Service;
import com.wfs.spring.service.TestService;
import com.wfs.spring.service.TestTwoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

@Component
public class TestTwoServiceImpl implements TestTwoService {
   @Autowired
   // @Qualifier("test1")
    @Test1Service
    TestService testService;

    @Override
    public void testTwo() {
        testService.test();
        System.out.println(testService);
    }
}
